
function Animal( name){
    this.name = name;
}
//Animal.prototype = {};
var lion = new Animal('King');
//
lion.toString();//
//lion
function Bird(name){
    this.name = name;
}
//Bird.prototype = {};

var peacock = new Bird('prince');
// peacock
//Number
//Boolean

Object.prototype.toCapitalName = function(){
    return this.name.toString().toUpperCase();
}

lion.toCapitalName();//KING
peacock.toCapitalName();//PRINCE